package com.lanou.pianke.articlecomment.entity;

import java.util.List;

public class ArticleComment {
    private String acomid;
    private String contentId;
    private Long uid;
    private Long autherId;
    private Long acommentTime;
    private String acommentContent;
    private String uname;
    //文章评论状态 是否被举报删除(0未被删除1已删除)
    private Integer acommentStatus;
    //文章评论举报数
    private Integer acommentReport;
    //该文章评论下的回复列表
    private List<ArticleReply> areplyList;

    public ArticleComment() {
    }

    public ArticleComment(String acomid, String contentId, Long uid, Long autherId, Long acommentTime, String acommentContent) {
        this.acomid = acomid;
        this.contentId = contentId;
        this.uid = uid;
        this.autherId = autherId;
        this.acommentTime = acommentTime;
        this.acommentContent = acommentContent;
    }

    public String getAcomid() {
        return acomid;
    }
    public ArticleComment(String acomid, String contentId, Long uid, Long autherId, Long acommentTime, String acommentContent, String uname, Integer acommentStatus, Integer acommentReport) {
        this.acomid = acomid;
        this.contentId = contentId;
        this.uid = uid;
        this.autherId = autherId;
        this.acommentTime = acommentTime;
        this.acommentContent = acommentContent;
        this.uname = uname;
        this.acommentStatus = acommentStatus;
        this.acommentReport = acommentReport;
    }

    public ArticleComment(String acomid, String contentId, Long uid, Long autherId, Long acommentTime, String acommentContent, String uname, Integer acommentStatus, Integer acommentReport, List<ArticleReply> areplyList) {
        this.acomid = acomid;
        this.contentId = contentId;
        this.uid = uid;
        this.autherId = autherId;
        this.acommentTime = acommentTime;
        this.acommentContent = acommentContent;
        this.uname = uname;
        this.acommentStatus = acommentStatus;
        this.acommentReport = acommentReport;
        this.areplyList = areplyList;
    }


    public void setAcomid(String acomid) {
        this.acomid = acomid;
    }

    public Long getAcommentTime() {
        return acommentTime;
    }

    public void setAcommentTime(Long acommentTime) {
        this.acommentTime = acommentTime;
    }

    public String getAcommentContent() {
        return acommentContent;
    }

    public void setAcommentContent(String acommentContent) {
        this.acommentContent = acommentContent;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getContentId() {
        return contentId;
    }

    public void setContentId(String contentId) {
        this.contentId = contentId;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Long getAutherId() {
        return autherId;
    }

    public void setAutherId(Long autherId) {
        this.autherId = autherId;
    }

    public Integer getAcommentStatus() {
        return acommentStatus;
    }

    public void setAcommentStatus(Integer acommentStatus) {
        this.acommentStatus = acommentStatus;
    }

    public Integer getAcommentReport() {
        return acommentReport;
    }

    public void setAcommentReport(Integer acommentReport) {
        this.acommentReport = acommentReport;
    }

    public List<ArticleReply> getAreplyList() {
        return areplyList;
    }

    public void setAreplyList(List<ArticleReply> areplyList) {
        this.areplyList = areplyList;
    }

    //    @Override
//    public String toString() {
//        return "ArticleComment{" +
//                "id='" + id + '\'' +
//                ", acommentTime=" + acommentTime +
//                ", acommentContent='" + acommentContent + '\'' +
//                ", uname='" + uname + '\'' +
//                '}';
//    }


    @Override
    public String toString() {
        return "ArticleComment{" +
                "acomid='" + acomid + '\'' +
                ", acommentTime=" + acommentTime +
                ", acommentContent='" + acommentContent + '\'' +
                ", uname='" + uname + '\'' +
                '}';
    }
}
